/**
 * Created by yanqu on 2017/5/21.
 */
const isSideBarOpen = (state = true, action) =>  {
    switch (action.type) {
        case 'TOGGLE_SIDE_BAR':
            return !state
        default:
            return state
    }
}

export default isSideBarOpen